package liurong.driver.exeception;

import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.io.OutputStream;

/**
 * 测试try异常1.7
 * 
 * @author liurong
 *
 */
public class TryTest {
	public static void main(String[] args) {
		try (OutputStream outputStream = new BufferedOutputStream(new FileOutputStream("d://3.txt"))) {
			outputStream.write(2);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
